﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace Sql_Windows_Sp_Tools.Common
{
    public class Verify
    {
        /// <summary>
        /// 整数验证
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static bool IsInt(string value)
        {
            return Regex.IsMatch(value, @"^\d+$");
        }

        /// <summary>
        /// 是否是版本号
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static bool IsVersion(string value)
        {
            return Regex.IsMatch(value, @"^[vV]{1}");
        }
    }
}
